/*
 * Copyright 2008-2010 Daniel Cachapa <cachapa@gmail.com>
 * 
 * This program is distributed under the terms of the GNU General Public License Version 3
 * The license can be read in its entirety in the LICENSE.txt file accompanying this source code,
 * or at: http://www.gnu.org/copyleft/gpl.html
 * 
 * This file is part of Libra.
 *
 * WeightWatch is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * WeightWatch is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with the WeightWatch source code. If not, see: http://www.gnu.org/licenses
 */

package net.cachapa.libra.util;

import android.content.Context;
import android.content.pm.PackageManager;

public class ProMode {
	public static final String LIBRA = "net.cachapa.libra";
	public static final String PRO_PLUGIN = "net.cachapa.libra.plugin.pro";
	
	public static boolean isInProMode(Context context) {
		return context.getPackageManager().checkSignatures(LIBRA, PRO_PLUGIN) == PackageManager.SIGNATURE_MATCH;
	}
}
